package main

import "fmt"

func main() {

	intChan := make(chan int, 3)

	fmt.Println(intChan)

	intChan <- 10
	intChan <- 10
	intChan <- 20

	// 关闭后不能进行写入操作 panic: send on closed channel
	close(intChan)

	s := <-intChan
	fmt.Println(s)

	fmt.Println(intChan)

}
